import http from '@/utils/http';

// 登录方法
export const login = (data) => http.post('/api/check/login',data);
// 公钥获取
export const getRSAPublicKey = () => http.get('/api/check/GetRSAPublicKey');
// 注册方法
export const register = (data) => http.post('/register',data);
// 获取用户详细信息
export const getInfo = () => http.get('/api/Check/GetUserProfile');

// 新闻数据
export const queryNewsList = (params) => http.get(`/api/lc_news_announcement_infos/LoadNewAttachmentNo`,{params});
// 新闻详情
export const queryNewsInfo = (id) => http.get(`/api/lc_news_announcement_infos/DWNEWSGet?id=${id}`);
// 企业列表
export const queryEnterpriseList = (params) => http.get(`/api/lc_enterprise_infos/LoadEnterpriseNo`,{params});
// 企业详情
export const queryEnterpriseInfo = (id) => http.get(`/api/lc_enterprise_infos/GetEnterpriseNo?id=${id}`);
// 找客户数据
export const lcEnterpriseInfosLoadKeHuNo = (params) => http.get(`/api/lc_enterprise_infos/LoadKeHuNo`,{params});
// 找商家和供需列表数据
export const lcEnterpriseInfosLoadshopNo = (params) => http.get(`/api/lc_enterprise_infos/LoadShopNo`,{params});
// 企业热榜接口
export const enterpriseHotEnterprise = (params) => http.get(`/api/lc_enterprise_infos/LoadEnterpriseHotNo`,{params});
// 企业热榜数据加一接口
export const UpdateEnterpriseSelectNo = (id) => http.get(`/api/lc_enterprise_infos/UpdateEnterpriseSelectNo?enterprise_id=${id}`,);
// 商品列表
export const queryProductList = (params) => http.get('/api/lc_product_infos/LoadShopNo',{params});
// 商品详情
export const queryProductInfo = (id) => http.get(`/api/lc_product_infos/GetShopNo?id=${id}`);
// 展会数据列表
export const lcExhibitionsInfosDWLoad = (params) => http.get('/api/lc_exhibitions_infos/DWLoad',{params});
// 展会详情
export const lcExhibitionsInfosDWGet = (params) => http.get(`/api/lc_exhibitions_infos/DWGet`,{params});
// 展会报名
export const lcExhibitionsInfosDW_BaoMingAdd = (data) => http.post(`/api/lc_exhibitions_infos/DW_BaoMingAdd`,data);
// 金融列表
export const lcFinancialProductInfosDWLoad = (params) => http.get('/api/lc_financial_product_infos/DWLoad',{params});
// 金融详情
export const lcFinancialProductInfosDWGet = (params) => http.get(`/api/lc_financial_product_infos/DWGet`,{params});
// 精选，直供，推荐供需信息
export const lcSupplyDemandInfosLoadGongXuInFoNo = (params) => http.get(`/api/lc_supply_demand_infos/LoadGongXuInFoNo`,{params});
// 供需厂商
export const lcSupplyDemandInfosloadGongXuInChangShangFoNo = (params) => http.get(`/api/lc_supply_demand_infos/loadGongXuInChangShangFoNo`,{params});